package com.woniuxy.member.common;


import result.Messagable;

public enum MemberResultCode implements Messagable {
    DELETE_COMMENT_FAILED(3006,"删除评论失败"),
    COMMENT_DOES_NOT_EXIST(3005,"评论不存在"),
    ADDING_COMMENT_FAILED(3004,"添加评论失败"),
    FILE_IS_NOT_AN_IMAGE(3003,"上传类型必须为图片"),
    INSUFFICIENT_SCORE(3002,"积分不足"),
    USER_DOES_NOT_EXIST(3001,"用户不存在"),
    DUPLICATE_PHONE_NUMBER(3000, "手机号码重复")

    ;

    private Integer code;
    private String message;

    private MemberResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
